﻿@model IEnumerable<WebSiteFool.Models.Picture>
@{
    ViewBag.Title = "All Pictures";
}
<ul class="dash wrapper-10">
    @if (Model != null && Model.Count() > 0)
    {
        foreach (var item in Model)
        {
        <li>@Html.ActionLink(item.Name + " - " + item.CreatedDate + " - " + item.ContentType, "Show", "Picture", new { Id = item.Id }, new { target = "_blank", @class = "title" })
            <div class="pic-menu">@Html.ActionLink("View", "Show", "Picture", new { Id = item.Id }, new { target = "_blank" })
                @Html.ActionLink("Delete", "Delete", "Picture", new { Id = item.Id }, new { onclick = "return confirm('Are you sure you want to delete this picture?')" })</div>
        </li>
        }
    }
    else
    {
        <li>No picture to display.</li>
    }
</ul>
<div class="wrapper-10">
    <a class="button toggle-pic" href="../Admin/Index"><< Back</a> <a class="button toggle-pic"
        href="Create">Upload Picture</a>
</div>
